/////////////////////////////////////////////////////////////////////////////
// Name:        RemovePkgDialog.h
// Purpose:     
// Author:      yospaly
// Modified by: 
// Created:     14/01/2009 17:26:40
// RCS-ID:      
// Copyright:   Copyright (C) 2008, yospaly
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _REMOVEPKGDIALOG_H_
#define _REMOVEPKGDIALOG_H_


/*!
 * Includes
 */

////@begin includes
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_MAINTAIN_PKG_DIALOG 10041
#define ID_REMOVE_LOG_TEXTCTRL 10042
#define ID_REMOVE_PROGRESS_GAUGE 10043
#define SYMBOL_REMOVEPKGDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_REMOVEPKGDIALOG_TITLE _("Maintain packages")
#define SYMBOL_REMOVEPKGDIALOG_IDNAME ID_MAINTAIN_PKG_DIALOG
#define SYMBOL_REMOVEPKGDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_REMOVEPKGDIALOG_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * RemovePkgDialog class declaration
 */

class RemovePkgDialog: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( RemovePkgDialog )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    RemovePkgDialog();
    RemovePkgDialog( wxWindow* parent, wxWindowID id = SYMBOL_REMOVEPKGDIALOG_IDNAME, const wxString& caption = SYMBOL_REMOVEPKGDIALOG_TITLE, const wxPoint& pos = SYMBOL_REMOVEPKGDIALOG_POSITION, const wxSize& size = SYMBOL_REMOVEPKGDIALOG_SIZE, long style = SYMBOL_REMOVEPKGDIALOG_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_REMOVEPKGDIALOG_IDNAME, const wxString& caption = SYMBOL_REMOVEPKGDIALOG_TITLE, const wxPoint& pos = SYMBOL_REMOVEPKGDIALOG_POSITION, const wxSize& size = SYMBOL_REMOVEPKGDIALOG_SIZE, long style = SYMBOL_REMOVEPKGDIALOG_STYLE );

    /// Destructor
    ~RemovePkgDialog();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin RemovePkgDialog event handler declarations

////@end RemovePkgDialog event handler declarations

////@begin RemovePkgDialog member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end RemovePkgDialog member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin RemovePkgDialog member variables
    wxTextCtrl* p_remove_log_textctrl;
    wxGauge* p_remove_progress_gauge;
////@end RemovePkgDialog member variables
public:
	void OnPkgRemoveBegin(wxCommandEvent &event);
	void OnPkgRemoving(wxCommandEvent &event);
	void OnPkgRemoveCompleted(wxCommandEvent &event);
	void OnPkgsRemoveBegin(wxCommandEvent &event);
	void OnPkgsRemoveCompleted(wxCommandEvent &event);
};

#endif
    // _REMOVEPKGDIALOG_H_
